<%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" Inherits="CommunityServer.Controls.CSThemePage" MasterPageFile="../Common/modal.Master" %>

<asp:Content ContentPlaceHolderID="bcr" runat="server">

<CSControl:Title runat="server" IncludeSiteName="false" ResourceName="InsertMedia_Title" />

<script type="text/javascript">
// <![CDATA[

function ProcessContent(content)
{
	if (window.parent.ContentSelectorCallbackFunction)
		window.parent.ContentSelectorCallbackFunction(content);

	window.parent.Telligent_Modal.Close();		
}

// ]]>
</script>

<div class="CommonContentArea">
    <div class="CommonContent">
        <CSControl:InsertMediaForm runat="server" 
            UrlTextBoxId="Url" 
            WidthTextBoxId="Width" 
            HeightTextBoxId="Height" 
            SelectContentButtonId="SelectContent"  
            SelectButtonId="Insert"
	        MediaInsertedClientFunction="ProcessContent"
	        >
            <FormTemplate>
                <CSControl:ResourceControl runat="server" Tag="Div" CssClass="CommonDescription" ResourceName="InsertMedia_Instructions" />
                
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="CommonFormFieldName"><CSControl:ResourceControl runat="server" ResourceName="InsertMedia_MediaUrl" /></td>
                        <td class="CommonFormField"><asp:TextBox ID="Url" Columns="30" runat="server" /> <asp:Button Text="Browse..." ID="SelectContent" runat="server" /></td>
                    </tr>
                    <tr>
                        <td class="CommonFormFieldName"><CSControl:ResourceControl runat="server" ResourceName="Width" /></td>
                        <td class="CommonFormField"><asp:TextBox ID="Width" Columns="4" runat="server" /></td>
                    </tr>
                    <tr>
                        <td class="CommonFormFieldName"><CSControl:ResourceControl runat="server" ResourceName="Height" /></td>
                        <td class="CommonFormField"><asp:TextBox ID="Height" Columns="4" runat="server" /></td>
                    </tr>
                </table>
                
                <p />
                
                <div class="CommonFormFieldName">
                    <CSControl:ResourceButton runat="server" ResourceName="InsertMedia_Insert" ID="Insert" />
                    <CSControl:ResourceButton runat="server" ResourceName="Cancel" OnClientClick="window.parent.Telligent_Modal.Close(); return false;" />
                </div>
            </FormTemplate>
        </CSControl:InsertMediaForm>
    </div>
</div>
      
</asp:Content>